package com.computer.servlet;

import java.io.IOException;

import java.util.Set;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.computer.datebase.DateBase;
import com.computer.product.Computer;




@WebServlet("/selectproduct")
public class SelectProductServlet extends HttpServlet {

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		Set<Computer> set = DateBase.getAll();
		request.setAttribute("computers", set);
		request.getRequestDispatcher("addcomputer").forward(request, response);
		
	}

}
